Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snap_notify to allow JSX content #2706

Merged
merged 19 commits into from
Sep 24, 2024
Merged

Update snap_notify to allow JSX content #2706

merged 19 commits into from
Sep 24, 2024

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Sep 10, 2024

Added the title, detailedView and footerLink properties to inApp notifications. This allows snaps to provide expanded views with their notifications. The detailedView property lets snaps return JSX content with a limited subset of components. The footerLink property is optional when providing an expanded view. This content is initially being exposed to populate a modal, but in the future may populate an entire page.

@hmalik88 hmalik88 requested a review from a team as a code owner September 10, 2024 21:23
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.38%. Comparing base (8b194d6) to head (329b874).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2706      +/-   ##
==========================================
+ Coverage   94.37%   94.38%   +0.01%     
==========================================
  Files         477      477              
  Lines       10183    10204      +21     
  Branches     1555     1557       +2     
==========================================
+ Hits         9610     9631      +21     
  Misses        573      573              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

packages/snaps-sdk/src/jsx/validation.ts Show resolved Hide resolved
packages/snaps-sdk/src/jsx/validation.ts Show resolved Hide resolved
packages/snaps-sdk/src/types/methods/notify.ts Outdated Show resolved Hide resolved
packages/snaps-sdk/src/types/methods/notify.ts Outdated Show resolved Hide resolved
Mrtenz
Mrtenz previously approved these changes Sep 24, 2024
Copy link
Member

@Mrtenz Mrtenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but there's a lint error.

Mrtenz
Mrtenz previously approved these changes Sep 24, 2024
@hmalik88 hmalik88 merged commit 803d314 into main Sep 24, 2024
165 checks passed
@hmalik88 hmalik88 deleted the hm/update-snap-notify branch September 24, 2024 15:57
hmalik88 added a commit that referenced this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants